package com.video.netty.send;

import com.video.commons.sendaop.ISocketSend;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

/**
 * 删除分控
 * {"id":"delWebcon", "account":["admin", "root"]}
 */
@Component
public class DelWebconSend extends ISocketSend {

    @Override
    public Map<String, Object> sendMsg(Object... objs) {

        //获得批量删除分控的账号名称
        String[] mids = (String[]) objs[0];

        Map<String, Object> map = new HashMap<>();
        map.put("id", "delWebcon");
        map.put("account", Arrays.asList(mids));
        return map;
    }
}
